import { Layout } from 'antd';
import React, { useState } from 'react';
import { Routes } from "react-router-dom";
import { renderRoute} from "../../utils/renderRoute";
import { items } from "../../router/index";
const { Content } = Layout;
const App: React.FC = () => {
  return (
    <Content
      className="site-layout-background"
      style={{
        margin: '24px 16px',
        padding: 24,
        minHeight: 280,
      }}
    >
      <Routes>
        {
          renderRoute(items)
        }
      </Routes>
    </Content>
  )
}
export default App;